package com.fileshare.web.dao;

import com.fileshare.web.dao.base.SequenceGenerater;
import com.fileshare.web.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface UserRepository extends SequenceGenerater<User> {
    void save(User user);

    User findByTypeAndPartySeq(@Param("type") String userType, @Param("partySeq") String thirdPartySeq);

    List<User> findAll();

    User findUserByUserName(String username);

    @Override
    User findBySeq(String seq);

    User queryUserBySeq(String userSeq);
}